import Vue from 'vue'
import Router from 'vue-router'

//首页
import login from '@/pages/login'
import index from '@/pages/index'
import orderRecord from '@/pages/orderRecord'
import recordDetail from '@/pages/recordDetail'
import materialConfirm from '@/pages/materialConfirm'
import search from '@/pages/search'
import chooseSpe from '@/pages/chooseSpe'

Vue.use(Router)
export default new Router({
    // mode: 'history',
    // base: '/stcwx',
    mode: 'hash',
    routes: [
        //首页
        {
            path: '/',
            name: 'login',
            component: login
        },
        {
            path: '/index',
            name: 'index',
            component: index
        },
        {
            path: '/orderRecord',
            name: 'orderRecord',
            component: orderRecord
        },
        {
            path: '/recordDetail',
            name: 'recordDetail',
            component: recordDetail
        },
        {
            path: '/materialConfirm',
            name: 'materialConfirm',
            component: materialConfirm
        },
        {
            path: '/search',
            name: 'search',
            component: search
        },
        {
            path: '/chooseSpe',
            name: 'chooseSpe',
            component: chooseSpe
        },

    ]
})